# ifndef IO_FILE_
# define IO_FILE_
# define MAX_LINE 51200
# include "data_struct.h"
# include "map"
# include "vector"
bool read_data_line( FILE *,map<string,int> * ,Instance *);
bool read_data(const char * data_file_name, map<string,int> * feature_name_id, vector<Instance> *instances);
bool read_model(const char * model_file_name, map<string,int> * feature_name_id, vector<double> * weight,double *beta0);
bool write_model(const char * model_file_name, map<string,int> * feature_name_id, vector<double> * weight,double beta0);
#endif
